package com.gimi.cloud.bbp.app.consumer.feign.mall;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.alibaba.fastjson.JSONObject;
import com.gimi.cloud.bbp.dto.mall.MallCartDTO;

import feign.Headers;

/**
 * @author lilinfeng
 */
@FeignClient(name = "bbp-app-service")
public interface MallCartFeignService {
	
	@Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/mall/cart/addGoodsToShoppingCart", method = RequestMethod.POST)
	String addGoodsToShoppingCart(MallCartDTO mallCart);

	@Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/mall/cart/showShoppingCart", method = RequestMethod.POST)
	String showShoppingCart(MallCartDTO mallCart);

	@Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/mall/cart/updateShoppingCart", method = RequestMethod.POST)
	String updateShoppingCart(MallCartDTO mallCart);

	@Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/mall/cart/deleteShoppingCart", method = RequestMethod.POST)
	String deleteShoppingCart(JSONObject map);
	
}